import WkExportVue from './index.vue'
import i18n from '@/i18n/i18n'

const WkExport = {}

WkExport.install = (Vue) => {
  const WkCRMExportConstructor = Vue.extend(WkExportVue)
  const instance = new WkCRMExportConstructor({
    el: document.createElement('div'),
    i18n
  })
  document.body.appendChild(instance.$el)

  Vue.prototype.$wkExport = instance
}

export default WkExport
